package infostroy.bookagolf.components.inputs;

import infostroy.bookagolf.common.Constants.Icons;
import infostroy.bookagolf.common.helpers.ImageHelper;

import javax.swing.*;

/**
 * Created by valer_000 on 2/25/14.
 */
public class GolfCheckBox extends JCheckBox {
    public GolfCheckBox(){
        super();
        setupCheckBox();
    }

    public GolfCheckBox(String label) {
        super(label);
        setupCheckBox();
    }

    private void setupCheckBox() {
        setSelectedIcon(new ImageIcon(ImageHelper.getInstance()
                .loadImage(Icons.CHECKBOX_ACTIVE)));
        setIcon(new ImageIcon(ImageHelper.getInstance()
                .loadImage(Icons.CHECKBOX_INACTIVE)));
        setContentAreaFilled(false);
        setFocusPainted(false);
    }
}
